<%@ page import="com.scalar.chiptrack.users.User,
                com.scalar.chiptrack.users.UserGroup,
                com.scalar.chiptrack.commons.SessionKeys,
                com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
</HEAD>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>
<table width='100%' cellpadding='4' cellspacing='4' align='left' border=0>
	<tr><td colspan='2' align="right" class="NArialView"><a href="javascript:window.close()">close window</a></td></tr>
	<tr><td colspan='2' align="center"><font class="NArialW"><%=request.getParameter( "type" )%> Release Audit Trail</font></td></tr>
    <tr><td colspan='2'><font class="NArailL"><%=request.getParameter( "type" )%> Release Audit Trail for -
	<%
		String releaseNumber = request.getParameter( "releaseNumber" );
		out.print( releaseNumber );
	%>
	</font></td></tr>
    <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>

	<logic:iterate id="audit" name="auditList" type="com.scalar.chiptrack.sales.SalesAuditTrail">
        <tr><td colspan='2' class="NArialL"><font size="3">*</font><bean:write name="audit" property="updatedDateAsString" />  by <bean:write name="audit" property="userId" /></td></tr>
        <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>

        <tr><td width="10%" class="NArialL"><br>Actions :</td>
        <td class="bodytext"><font size="-1">
            <bean:write name="audit" property="actions" filter="false"/></font>
        </td>
        </tr>
        <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>
        <tr><td colspan=2><hr></td></tr>
	</logic:iterate>

	<tr><td  class="NArialL" colspan='2' >User:
	<%
		User user = (User)session.getAttribute (SessionKeys.USER_KEY);
        if ( user == null )
        {
            user = (User)session.getAttribute ( "ExtUser" );
        }
        if ( user != null )
        {
		    out.println(user.getUserId());
        }
	%>
	</td></tr>
	<tr><td class="NArialL" colspan='2' >Time: <script>document.write(new Date())</script></td></tr>
	<tr><td colspan='2'>&nbsp;</td></tr>
	<tr><td colspan='2' align="center" class="NArialView"><a href="javascript:window.close()">close window</a></td></tr>
</table>
<!-- till here -->
</BODY>
</HTML>
